package com.cros.pruebas;

import java.util.List;

public class PruebasQuizSimuladores {
	public static void main(String[] argv){
		Person j = new Person("jesufs");
		Person e= new Person("jesus");
		if(j.equals(e)){
			System.out.println("Si son oguales");
		}
	}
}

class Pizza{
java.util.ArrayList toppings;
public void addTopping(String topping){
	toppings.add(topping);
	System.out.println("Aqui entre");
}	
}

class PeperoniPizza extends Pizza{
	public void addTopping(String topping){
		System.out.println("Cannon add Toppign");
	}
	
}

class Person {
	private String name;
	public Person(String name){
		this.name=name;
	}
	
	public void addString(List<? super String> list){
		list.add("jesus");
	}
	
	public boolean equals(Person p){
		return p.name.equals(this.name);
	}
}